﻿@model XPressify.Models.FamilyListModel

@{
    ViewBag.Title = "FamilyList";
}

@if (Model.AllRelationshipChild.Count() > 0)
{
    <text>Childrens:</text><br />
    foreach (var children in Model.AllRelationshipChild)
    {
        <text>-</text> @Html.ActionLink(children.FullName, "ProfileView", "Profile", new { id = children.Id }, new { style = "color:blue" }) <br />
    }
}
@if (Model.AllRelationshipParent.Count() > 0)
{
    <text>Parents:</text><br />
    foreach (var children in Model.AllRelationshipParent)
    {
        <text>-</text> @Html.ActionLink(children.FullName, "ProfileView", "Profile", new { id = children.Id }, new { style = "color:blue" }) <br />
    }
}
@if (Model.AllRelationshipSibling.Count() > 0)
{
    <text>Siblings:</text><br />
    foreach (var children in Model.AllRelationshipSibling)
    {
        <text>-</text> @Html.ActionLink(children.FullName, "ProfileView", "Profile", new { id = children.Id }, new { style = "color:blue" }) <br />
    }
}
@if (Model.AllRelationshipUncleAunt.Count() > 0)
{
    <text>Uncle/Aunt:</text><br />
    foreach (var children in Model.AllRelationshipUncleAunt)
    {
        <text>-</text> @Html.ActionLink(children.FullName, "ProfileView", "Profile", new { id = children.Id }, new { style = "color:blue" }) <br />
    }
}
@if (Model.AllRelationshipNephewNiece.Count() > 0)
{
    <text>Nephew/Niece:</text><br />
    foreach (var children in Model.AllRelationshipNephewNiece)
    {
        <text>-</text> @Html.ActionLink(children.FullName, "ProfileView", "Profile", new { id = children.Id }, new { style = "color:blue" }) <br />
    }
}
@if (Model.AllRelationshipCousin.Count() > 0)
{
    <text>Cousin:</text><br />
    foreach (var children in Model.AllRelationshipCousin)
    {
        <text>-</text> @Html.ActionLink(children.FullName, "ProfileView", "Profile", new { id = children.Id }, new { style = "color:blue" }) <br />
    }
}
@if (Model.AllRelationshipGrandparent.Count() > 0)
{
    <text>Grandparent:</text><br />
    foreach (var children in Model.AllRelationshipGrandparent)
    {
        <text>-</text> @Html.ActionLink(children.FullName, "ProfileView", "Profile", new { id = children.Id }, new { style = "color:blue" }) <br />
    }
}
@if (Model.AllRelationshipGrandchild.Count() > 0)
{
    <text>Grandchildren:</text><br />
    foreach (var children in Model.AllRelationshipGrandchild)
    {
        <text>-</text> @Html.ActionLink(children.FullName, "ProfileView", "Profile", new { id = children.Id }, new { style = "color:blue" }) <br />
    }
}

